import request from '@/utils/request'

// 查询设计师和用户
export function getuser(username, currentPage, pagesizes) {
  return request({
    url: '/uduser',
    method: 'get',
    params: { username, currentPage, pagesizes }
  })
}

export function getuserByid(userId) {
  return request({
    url: `/uduser/auth/${userId}`,
    method: 'get'
  })
}

export function deleteuser(userId) {
  return request({
    url: `/uduser/${userId}`,
    method: 'delete'
  })
}

// 更新
export function updateAuth(userAuth) {
  return request({
    url: `/uduser/auth`,
    method: 'put',
    data: userAuth
  })
}

